package model;

import java.io.Serializable;
import java.util.Collection;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;

@Entity
public class Farmaceutico implements Serializable{

	private static final long serialVersionUID = 324192536996498256L;

	private Long codigo;
	private String nome;
	private Collection<Farmacia> farmacia;
	
	@Id @GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long getCodigo() {
		return codigo;
	}
	
	public void setCodigo(Long codigo) {
		this.codigo = codigo;
	}
	
	public String getNome() {
		return nome;
	}
	
	public void setNome(String nome) {
		this.nome = nome;
	}

	@ManyToMany
	public Collection<Farmacia> getFarmacia() {
		return farmacia;
	}

	public void setFarmacia(Collection<Farmacia> farmacia) {
		this.farmacia = farmacia;
	}
	
}
